package com.qfedu.service.impl;

import com.qfedu.dao.InforDao;
import com.qfedu.dao.impl.InforDaoImpl;
import com.qfedu.pojo.Infor;
import com.qfedu.service.InforService;

public class InforServiceImpl implements InforService {

    InforDao inforDao = new InforDaoImpl();
    @Override
    public boolean existsInfor(Infor infor) {
        Infor infor1 = inforDao.queryInfor(infor.getPhone(),infor.getName(),infor.getIdcode());
        if(infor1 == null){
            return false;
        }
        return true;
    }
}
